<template>
  <div class="delay">
    <a-select v-model:value="selectValue" :options="options" @change="handlerChange"> </a-select>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
export default defineComponent({
  name: "alarmDelpy",
  props: {
    value: {
      type: String,
      default: "",
    },
  },
  emits: ["input"],
  setup({ value }, { emit }) {
    const selectValue = ref("");
    selectValue.value = value;
    const options = [
      { label: "系统默认", value: "" },
      { label: "一分钟", value: "1" },
      { label: "三分钟", value: "3" },
    ];
    const handlerChange = (e) => {
      emit("input", e);
    };
    return { options,selectValue, handlerChange };
  },
});
</script>
